Integrand size = 8, antiderivative size = 309 \[ \int \frac {1}{1+\sin ^4(x)} \, dx=\frac {x}{2 \sqrt {-1+\sqrt {2}}}+\frac {\arctan \left (\frac {\sqrt {-1+\sqrt {2}}-2 \sqrt {-1+\sqrt {2}} \cos ^2(x)-\left (-2+\sqrt {2}\right ) \cos (x) \sin (x)}{2+\sqrt {1+\sqrt {2}}+\left (-2+\sqrt {2}\right ) \cos ^2(x)-2 \sqrt {-1+\sqrt {2}} \cos (x) \sin (x)}\right )}{4 \sqrt {-1+\sqrt {2}}}-\frac {\arctan \left (\frac {\sqrt {-1+\sqrt {2}}-2 \sqrt {-1+\sqrt {2}} \cos ^2(x)+\left (-2+\sqrt {2}\right ) \cos (x) \sin (x)}{2+\sqrt {1+\sqrt {2}}+\left (-2+\sqrt {2}\right ) \cos ^2(x)+2 \sqrt {-1+\sqrt {2}} \cos (x) \sin (x)}\right )}{4 \sqrt {-1+\sqrt {2}}}-\frac {1}{8} \sqrt {-1+\sqrt {2}} \log \left (\sqrt {2}-2 \sqrt {-1+\sqrt {2}} \tan (x)+2 \tan ^2(x)\right )+\frac {1}{8} \sqrt {-1+\sqrt {2}} \log \left (1+\sqrt {2 \left (-1+\sqrt {2}\right )} \tan (x)+\sqrt {2} \tan ^2(x)\right ) \]
[Out]
Time = 0.15 (sec) , antiderivative size = 309, normalized size of antiderivative = 1.00, number of steps used = 10, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.750, Rules used = {3288, 1183, 648, 632, 210, 642} \[ \int \frac {1}{1+\sin ^4(x)} \, dx=\frac {\arctan \left (\frac {-2 \sqrt {\sqrt {2}-1} \cos ^2(x)-\left (\sqrt {2}-2\right ) \sin (x) \cos (x)+\sqrt {\sqrt {2}-1}}{\left (\sqrt {2}-2\right ) \cos ^2(x)-2 \sqrt {\sqrt {2}-1} \sin (x) \cos (x)+\sqrt {1+\sqrt {2}}+2}\right )}{4 \sqrt {\sqrt {2}-1}}-\frac {\arctan \left (\frac {-2 \sqrt {\sqrt {2}-1} \cos ^2(x)+\left (\sqrt {2}-2\right ) \sin (x) \cos (x)+\sqrt {\sqrt {2}-1}}{\left (\sqrt {2}-2\right ) \cos ^2(x)+2 \sqrt {\sqrt {2}-1} \sin (x) \cos (x)+\sqrt {1+\sqrt {2}}+2}\right )}{4 \sqrt {\sqrt {2}-1}}+\frac {x}{2 \sqrt {\sqrt {2}-1}}-\frac {1}{8} \sqrt {\sqrt {2}-1} \log \left (2 \tan ^2(x)-2 \sqrt {\sqrt {2}-1} \tan (x)+\sqrt {2}\right )+\frac {1}{8} \sqrt {\sqrt {2}-1} \log \left (\sqrt {2} \tan ^2(x)+\sqrt {2 \left (\sqrt {2}-1\right )} \tan (x)+1\right ) \]
[In]
[Out]
Rule 210
Rule 632
Rule 642
Rule 648
Rule 1183
Rule 3288
Rubi steps \begin{align*} \text {integral}& = \text {Subst}\left (\int \frac {1+x^2}{1+2 x^2+2 x^4} \, dx,x,\tan (x)\right ) \\ & = \frac {\text {Subst}\left (\int \frac {\sqrt {-1+\sqrt {2}}-\left (1-\frac {1}{\sqrt {2}}\right ) x}{\frac {1}{\sqrt {2}}-\sqrt {-1+\sqrt {2}} x+x^2} \, dx,x,\tan (x)\right )}{2 \sqrt {2 \left (-1+\sqrt {2}\right )}}+\frac {\text {Subst}\left (\int \frac {\sqrt {-1+\sqrt {2}}+\left (1-\frac {1}{\sqrt {2}}\right ) x}{\frac {1}{\sqrt {2}}+\sqrt {-1+\sqrt {2}} x+x^2} \, dx,x,\tan (x)\right )}{2 \sqrt {2 \left (-1+\sqrt {2}\right )}} \\ & = -\left (\frac {1}{8} \sqrt {-1+\sqrt {2}} \text {Subst}\left (\int \frac {-\sqrt {-1+\sqrt {2}}+2 x}{\frac {1}{\sqrt {2}}-\sqrt {-1+\sqrt {2}} x+x^2} \, dx,x,\tan (x)\right )\right )+\frac {1}{8} \sqrt {-1+\sqrt {2}} \text {Subst}\left (\int \frac {\sqrt {-1+\sqrt {2}}+2 x}{\frac {1}{\sqrt {2}}+\sqrt {-1+\sqrt {2}} x+x^2} \, dx,x,\tan (x)\right )+\frac {1}{8} \sqrt {3+2 \sqrt {2}} \text {Subst}\left (\int \frac {1}{\frac {1}{\sqrt {2}}-\sqrt {-1+\sqrt {2}} x+x^2} \, dx,x,\tan (x)\right )+\frac {1}{8} \sqrt {3+2 \sqrt {2}} \text {Subst}\left (\int \frac {1}{\frac {1}{\sqrt {2}}+\sqrt {-1+\sqrt {2}} x+x^2} \, dx,x,\tan (x)\right ) \\ & = -\frac {1}{8} \sqrt {-1+\sqrt {2}} \log \left (\sqrt {2}-2 \sqrt {-1+\sqrt {2}} \tan (x)+2 \tan ^2(x)\right )+\frac {1}{8} \sqrt {-1+\sqrt {2}} \log \left (1+\sqrt {2 \left (-1+\sqrt {2}\right )} \tan (x)+\sqrt {2} \tan ^2(x)\right )-\frac {1}{4} \sqrt {3+2 \sqrt {2}} \text {Subst}\left (\int \frac {1}{-1-\sqrt {2}-x^2} \, dx,x,-\sqrt {-1+\sqrt {2}}+2 \tan (x)\right )-\frac {1}{4} \sqrt {3+2 \sqrt {2}} \text {Subst}\left (\int \frac {1}{-1-\sqrt {2}-x^2} \, dx,x,\sqrt {-1+\sqrt {2}}+2 \tan (x)\right ) \\ & = \frac {1}{2} \sqrt {1+\sqrt {2}} x+\frac {1}{4} \sqrt {1+\sqrt {2}} \arctan \left (\frac {\sqrt {-1+\sqrt {2}}-2 \sqrt {-1+\sqrt {2}} \cos ^2(x)+\left (2-\sqrt {2}\right ) \cos (x) \sin (x)}{2+\sqrt {1+\sqrt {2}}-\left (2-\sqrt {2}\right ) \cos ^2(x)-2 \sqrt {-1+\sqrt {2}} \cos (x) \sin (x)}\right )-\frac {1}{4} \sqrt {1+\sqrt {2}} \arctan \left (\frac {\sqrt {-1+\sqrt {2}}-2 \sqrt {-1+\sqrt {2}} \cos ^2(x)-\left (2-\sqrt {2}\right ) \cos (x) \sin (x)}{2+\sqrt {1+\sqrt {2}}-\left (2-\sqrt {2}\right ) \cos ^2(x)+2 \sqrt {-1+\sqrt {2}} \cos (x) \sin (x)}\right )-\frac {1}{8} \sqrt {-1+\sqrt {2}} \log \left (\sqrt {2}-2 \sqrt {-1+\sqrt {2}} \tan (x)+2 \tan ^2(x)\right )+\frac {1}{8} \sqrt {-1+\sqrt {2}} \log \left (1+\sqrt {2 \left (-1+\sqrt {2}\right )} \tan (x)+\sqrt {2} \tan ^2(x)\right ) \\ \end{align*}
Result contains complex when optimal does not.
Time = 5.04 (sec) , antiderivative size = 45, normalized size of antiderivative = 0.15 \[ \int \frac {1}{1+\sin ^4(x)} \, dx=\frac {\arctan \left (\sqrt {1-i} \tan (x)\right )}{2 \sqrt {1-i}}+\frac {\arctan \left (\sqrt {1+i} \tan (x)\right )}{2 \sqrt {1+i}} \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 1.53 (sec) , antiderivative size = 126, normalized size of antiderivative = 0.41
method | result | size |
risch | \(\frac {\sqrt {-2+2 i}\, \ln \left ({\mathrm e}^{2 i x}+i \sqrt {-2+2 i}+\sqrt {-2+2 i}-1+2 i\right )}{8}-\frac {\sqrt {-2+2 i}\, \ln \left ({\mathrm e}^{2 i x}-i \sqrt {-2+2 i}-\sqrt {-2+2 i}-1+2 i\right )}{8}+\frac {\sqrt {-2-2 i}\, \ln \left ({\mathrm e}^{2 i x}+i \sqrt {-2-2 i}-\sqrt {-2-2 i}-1-2 i\right )}{8}-\frac {\sqrt {-2-2 i}\, \ln \left ({\mathrm e}^{2 i x}-i \sqrt {-2-2 i}+\sqrt {-2-2 i}-1-2 i\right )}{8}\) | \(126\) |
default | \(\frac {\sqrt {2}\, \left (-\frac {\sqrt {-2+2 \sqrt {2}}\, \ln \left (-\sqrt {-2+2 \sqrt {2}}\, \sqrt {2}\, \tan \left (x \right )+2 \left (\tan ^{2}\left (x \right )\right )+\sqrt {2}\right )}{4}+\frac {\left (-\frac {\left (-2+2 \sqrt {2}\right ) \sqrt {2}}{4}+2\right ) \arctan \left (\frac {-\sqrt {2}\, \sqrt {-2+2 \sqrt {2}}+4 \tan \left (x \right )}{2 \sqrt {1+\sqrt {2}}}\right )}{\sqrt {1+\sqrt {2}}}\right )}{4}+\frac {\sqrt {2}\, \left (\frac {\sqrt {-2+2 \sqrt {2}}\, \ln \left (\sqrt {2}+\sqrt {-2+2 \sqrt {2}}\, \sqrt {2}\, \tan \left (x \right )+2 \left (\tan ^{2}\left (x \right )\right )\right )}{4}+\frac {\left (-\frac {\left (-2+2 \sqrt {2}\right ) \sqrt {2}}{4}+2\right ) \arctan \left (\frac {\sqrt {2}\, \sqrt {-2+2 \sqrt {2}}+4 \tan \left (x \right )}{2 \sqrt {1+\sqrt {2}}}\right )}{\sqrt {1+\sqrt {2}}}\right )}{4}\) | \(190\) |
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.30 (sec) , antiderivative size = 117, normalized size of antiderivative = 0.38 \[ \int \frac {1}{1+\sin ^4(x)} \, dx=\frac {1}{16} \, \sqrt {2} \sqrt {i - 1} \log \left (-\left (i - 1\right ) \, \sqrt {2} \sqrt {i - 1} \cos \left (x\right ) \sin \left (x\right ) + \left (2 i - 1\right ) \, \cos \left (x\right )^{2} - i + 1\right ) - \frac {1}{16} \, \sqrt {2} \sqrt {i - 1} \log \left (\left (i - 1\right ) \, \sqrt {2} \sqrt {i - 1} \cos \left (x\right ) \sin \left (x\right ) + \left (2 i - 1\right ) \, \cos \left (x\right )^{2} - i + 1\right ) - \frac {1}{16} \, \sqrt {2} \sqrt {-i - 1} \log \left (\left (i + 1\right ) \, \sqrt {2} \sqrt {-i - 1} \cos \left (x\right ) \sin \left (x\right ) + \left (2 i + 1\right ) \, \cos \left (x\right )^{2} - i - 1\right ) + \frac {1}{16} \, \sqrt {2} \sqrt {-i - 1} \log \left (-\left (i + 1\right ) \, \sqrt {2} \sqrt {-i - 1} \cos \left (x\right ) \sin \left (x\right ) + \left (2 i + 1\right ) \, \cos \left (x\right )^{2} - i - 1\right ) \]
[In]
[Out]
Timed out. \[ \int \frac {1}{1+\sin ^4(x)} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {1}{1+\sin ^4(x)} \, dx=\int { \frac {1}{\sin \left (x\right )^{4} + 1} \,d x } \]
[In]
[Out]
none
Time = 0.58 (sec) , antiderivative size = 170, normalized size of antiderivative = 0.55 \[ \int \frac {1}{1+\sin ^4(x)} \, dx=\frac {1}{4} \, {\left (\pi \left \lfloor \frac {x}{\pi } + \frac {1}{2} \right \rfloor + \arctan \left (\frac {2 \, \left (\frac {1}{2}\right )^{\frac {3}{4}} {\left (\left (\frac {1}{2}\right )^{\frac {1}{4}} \sqrt {-\sqrt {2} + 2} + 2 \, \tan \left (x\right )\right )}}{\sqrt {\sqrt {2} + 2}}\right )\right )} \sqrt {\sqrt {2} + 1} + \frac {1}{4} \, {\left (\pi \left \lfloor \frac {x}{\pi } + \frac {1}{2} \right \rfloor + \arctan \left (-\frac {2 \, \left (\frac {1}{2}\right )^{\frac {3}{4}} {\left (\left (\frac {1}{2}\right )^{\frac {1}{4}} \sqrt {-\sqrt {2} + 2} - 2 \, \tan \left (x\right )\right )}}{\sqrt {\sqrt {2} + 2}}\right )\right )} \sqrt {\sqrt {2} + 1} + \frac {1}{8} \, \sqrt {\sqrt {2} - 1} \log \left (\tan \left (x\right )^{2} + \left (\frac {1}{2}\right )^{\frac {1}{4}} \sqrt {-\sqrt {2} + 2} \tan \left (x\right ) + \sqrt {\frac {1}{2}}\right ) - \frac {1}{8} \, \sqrt {\sqrt {2} - 1} \log \left (\tan \left (x\right )^{2} - \left (\frac {1}{2}\right )^{\frac {1}{4}} \sqrt {-\sqrt {2} + 2} \tan \left (x\right ) + \sqrt {\frac {1}{2}}\right ) \]
[In]
[Out]
Time = 14.51 (sec) , antiderivative size = 236, normalized size of antiderivative = 0.76 \[ \int \frac {1}{1+\sin ^4(x)} \, dx=\mathrm {atanh}\left (\frac {\mathrm {tan}\left (x\right )}{8\,\sqrt {-\frac {\sqrt {2}}{64}-\frac {1}{64}}}-\frac {\mathrm {tan}\left (x\right )}{8\,\sqrt {\frac {\sqrt {2}}{64}-\frac {1}{64}}}+\frac {\sqrt {2}\,\mathrm {tan}\left (x\right )}{16\,\sqrt {-\frac {\sqrt {2}}{64}-\frac {1}{64}}}+\frac {\sqrt {2}\,\mathrm {tan}\left (x\right )}{16\,\sqrt {\frac {\sqrt {2}}{64}-\frac {1}{64}}}\right )\,\left (2\,\sqrt {-\frac {\sqrt {2}}{64}-\frac {1}{64}}-2\,\sqrt {\frac {\sqrt {2}}{64}-\frac {1}{64}}\right )+\mathrm {atanh}\left (\frac {\mathrm {tan}\left (x\right )}{8\,\sqrt {-\frac {\sqrt {2}}{64}-\frac {1}{64}}}+\frac {\mathrm {tan}\left (x\right )}{8\,\sqrt {\frac {\sqrt {2}}{64}-\frac {1}{64}}}+\frac {\sqrt {2}\,\mathrm {tan}\left (x\right )}{16\,\sqrt {-\frac {\sqrt {2}}{64}-\frac {1}{64}}}-\frac {\sqrt {2}\,\mathrm {tan}\left (x\right )}{16\,\sqrt {\frac {\sqrt {2}}{64}-\frac {1}{64}}}\right )\,\left (2\,\sqrt {-\frac {\sqrt {2}}{64}-\frac {1}{64}}+2\,\sqrt {\frac {\sqrt {2}}{64}-\frac {1}{64}}\right )-\frac {\left (x-\mathrm {atan}\left (\mathrm {tan}\left (x\right )\right )\right )\,\left (\pi \,\left (2\,\sqrt {-\frac {\sqrt {2}}{64}-\frac {1}{64}}-2\,\sqrt {\frac {\sqrt {2}}{64}-\frac {1}{64}}\right )\,1{}\mathrm {i}+\pi \,\left (2\,\sqrt {-\frac {\sqrt {2}}{64}-\frac {1}{64}}+2\,\sqrt {\frac {\sqrt {2}}{64}-\frac {1}{64}}\right )\,1{}\mathrm {i}\right )}{\pi } \]
[In]
[Out]